<?php  if ( ! defined('CentPHP')) exit( "Disallow to access direct!" );
/*
    |====================================================|
	|  CentPHP                                           |
	|----------------------------------------------------|
	|  package      lib/kernel/CentPHP.php               |
	|  auther       Boyu Sun                             |
	|  copyright    Copyright (c) 2008, sunboyu.cn       |
	|  license      freebsd-license                      |
	|  link         www.sunboyu.cn                       |
	|  version      Version 0.1                          |
	|====================================================|
*/
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // 过去的时间
require_once(LIBPATH.'/Common'.EXT);
$define = &load_config('Define',false,'define');
$CP = &new_class('CP');
$URI = &new_class('URI');
$classname = $URI->get_module();
$method = $URI->get_action();

new_class('Controller',false);

$CentPHP = &new_class( $classname );

if(!method_exists($CentPHP,$method)) exit('The class '.$classname.' don\'t has the method '.$method.'!');

call_user_func_array(array(&$CentPHP, $method), array_slice($URI->get, 2));
?>